import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { piniaStore } from './store';
import '@/assets/css/vant.css'
// 移动端适配
import 'lib-flexible/flexible.js';

// 引入全局样式
import '@/assets/scss/index.scss';
import 'vant/es/notify/style/index';

// 全局引入按需引入UI库 vant
import { vantPlugins } from './plugins/vant.js';

//全局公共组件
import components from './plugins/components.js';
//注册指令
import directive from './plugins/directive';
//防止chrome浏览器监听事件中是否有e.preventDefault()行为,防止页面卡顿
import 'default-passive-events';

createApp(App).use(directive).use(piniaStore).use(router).use(vantPlugins).use(components).mount('#app');